<template>
	<view class="main_container">
		<!-- <view class="login" @click="switch()">微信登录</view> -->
		<view class="login" @click="__switch()">微信登录</view>
		<u-loading-page :loading="loading"></u-loading-page>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading: false
			}
		},
		methods: {
			__switch() {
				this.loading = true
				setTimeout(() => {
					uni.setStorageSync("is_logined", true)
					uni.redirectTo({
						url: "/self-content/pages/switch_school/switch_school"
					})
				}, 700)
			}
		}
		
		
	}
</script>

<style>
	.main_container {
		padding-top: 300rpx;
		margin: auto;
	}
	.login {
		font-size: 21px;
		font-weight: 600;
		border-radius: 15px;
		text-align: center;
		margin: auto;
		height: 200rpx;
		width: 350rpx;
		background-color: aquamarine;
		line-height: 200rpx;
	}
</style>
